/**
 * 测试
 *
 * @author zhu
 * @date 2024-03-12
 */
public class test {
    public static void main(String[] args) {
        User user = new User();
        user.setKeyStatus("带了钥匙");
        Thief thief = new Thief();
        Door door = new SecurityDoor();
        Door door1 = new IronDoor();
        door.setLockStatus("已上锁");
        user.openDoor(door1);
        thief.theft(door);
    }
}
